import { post } from "./http";
const baseURL = "comment/";
// 新增数据
export const getAddComment = (params) => {
  return post(`${baseURL}add`, params);
};

// 删除数据
export const getDeleteComment = (params) => {
  return post(`${baseURL}delete`, params);
};

// 根据ID 修改数据
export const getCommentEdit = (params) => {
  return post(`${baseURL}update`, params);
};

// 分页 获取数据
export const getCommentList = (params) => {
  return post(`${baseURL}get/page/list`, params);
};

// 根据ID查询 数据
export const getByIdComment = (params) => {
  return post(`${baseURL}get/by/id`, params);
};

// 获取全部数据
export const getByIdCommentList = (params) => {
  return post(`${baseURL}get/by/id/comment`, params);
};

